gl renderer: Fix shadow shader
authorTimm Bäder <mail@baedert.org>
Wed, 6 Dec 2017 16:24:58 +0000 (17:24 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 21 Dec 2017 18:12:32 +0000 (19:12 +0100)
We need to take the alpha of the shadow color into account as well.

gsk/resources/glsl/shadow.fs.glsl

index 3426ba35fc507ef9d8799688c2360de9f291dc50..f3535f13615f6d4a0903de18eaf0094be6df8fa1 100644 (file)
@@ -7,7 +7,7 @@ void main() {
   // pre-multiply
   color.rgb *= color.a;
 
-  color = vec4(u_color.rgb * diffuse.a, diffuse.a);
+  color = vec4(u_color.rgb * diffuse.a, diffuse.a * color.a);
 
   setOutputColor(color);
 }